package com.caiya.cart.entity;

import java.util.Date;

public class CartInfo {
    private Long id;

    private Long userId;

    private String cartNum;

    private Long cartTypeParentId;

    private Long cartTypeId;

    private String cartTypeParentName;

    private String cartTypeName;

    private Date updateTime=new Date();

    private Date createTime=new Date();

    @Override
    public String toString() {
        return "CartInfo{" +
                "id=" + id +
                ", userId=" + userId +
                ", cartNum='" + cartNum + '\'' +
                ", cartTypeParentId=" + cartTypeParentId +
                ", cartTypeId=" + cartTypeId +
                ", cartTypeParentName='" + cartTypeParentName + '\'' +
                ", cartTypeName='" + cartTypeName + '\'' +
                ", updateTime=" + updateTime +
                ", createTime=" + createTime +
                '}';
    }

    public String getCartTypeParentName() {
        return cartTypeParentName;
    }

    public void setCartTypeParentName(String cartTypeParentName) {
        this.cartTypeParentName = cartTypeParentName;
    }

    public String getCartTypeName() {
        return cartTypeName;
    }

    public void setCartTypeName(String cartTypeName) {
        this.cartTypeName = cartTypeName;
    }

    public CartInfo() {
        super();
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getCartNum() {
        return cartNum;
    }

    public void setCartNum(String cartNum) {
        this.cartNum = cartNum == null ? null : cartNum.trim();
    }

    public Long getCartTypeParentId() {
        return cartTypeParentId;
    }

    public void setCartTypeParentId(Long cartTypeParentId) {
        this.cartTypeParentId = cartTypeParentId;
    }

    public Long getCartTypeId() {
        return cartTypeId;
    }

    public void setCartTypeId(Long cartTypeId) {
        this.cartTypeId = cartTypeId;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}